package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class Employee extends Fu implements Serializable {

    private static final long serialVersionUID = 1L;

    //    private Long id;

    @ExcelProperty(value = "账号")
    private String username;

    @ExcelProperty(value = "用户名")
    private String name;

    @ExcelIgnore
    private String password;

    @ExcelProperty(value = "手机号")
    private String phone;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "身份证号")
    private String idNumber;

    @ExcelProperty(value = "状态")
    private Integer status;

//    @TableField(fill = FieldFill.INSERT)
//    private LocalDateTime createTime;
//
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateTime;
//
//    @TableField(fill = FieldFill.INSERT)
//    private Long createUser;
//
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private Long updateUser;

}
